import { app, BrowserWindow } from "electron";
app.whenReady().then(() => {
  const win = new BrowserWindow({
    height: 600,
    width: 800,
    webPreferences: {
      nodeIntegration: true,
      contextIsolation: false,
      webSecurity: false,
    },
  });
  win.webContents.openDevTools()
  if (process.argv[2]) {
    win.loadURL(process.argv[2]);//开发环境
  } else {
    win.loadFile("index.html");
  }
});
